<?php

/**
 * Description of Application
 *
 * @author thuongnh
 */
class Application {

    var $request;
    var $response;

    public function __construct() {
        Loader::loadClass("Request");
        $this->request = new Request();
        Loader::loadClass("Response");
        $this->response = new Response();
    }

    public function run() {
        Loader::loadClass("Dispatcher");
        Dispatcher::dispatch($this->request, $this->response);
        echo $this->response;
    }

}

?>
